using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Domains
{
    /// <summary>
    /// <para>Set Value For Range Domain</para>
    /// <para>Sets the minimum and maximum values for an existing Range domain.</para>
    /// <para>设置现有范围属性域的最小值和最大值。</para>
    /// </summary>    
    [DisplayName("Set Value For Range Domain")]
    public class SetValueForRangeDomain : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public SetValueForRangeDomain()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_workspace">
        /// <para>Input Workspace</para>
        /// <para>The geodatabase containing the domain to be updated.</para>
        /// <para>包含要更新的属性域的地理数据库。</para>
        /// </param>
        /// <param name="_domain_name">
        /// <para>Domain Name</para>
        /// <para>The name of the range domain to be updated.</para>
        /// <para>要更新的范围域的名称。</para>
        /// </param>
        /// <param name="_min_value">
        /// <para>Minimum Value</para>
        /// <para>The minimum value of the range domain.</para>
        /// <para>范围域的最小值。</para>
        /// </param>
        /// <param name="_max_value">
        /// <para>Maximum Value</para>
        /// <para>The maximum value of the range domain.</para>
        /// <para>范围域的最大值。</para>
        /// </param>
        public SetValueForRangeDomain(object _in_workspace, object _domain_name, object _min_value, object _max_value)
        {
            this._in_workspace = _in_workspace;
            this._domain_name = _domain_name;
            this._min_value = _min_value;
            this._max_value = _max_value;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Set Value For Range Domain";

        public override string CallName => "management.SetValueForRangeDomain";

        public override List<string> AcceptEnvironments => ["autoCommit", "workspace"];

        public override object[] ParameterInfo => [_in_workspace, _domain_name, _min_value, _max_value, _out_workspace];

        /// <summary>
        /// <para>Input Workspace</para>
        /// <para>The geodatabase containing the domain to be updated.</para>
        /// <para>包含要更新的属性域的地理数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_workspace { get; set; }


        /// <summary>
        /// <para>Domain Name</para>
        /// <para>The name of the range domain to be updated.</para>
        /// <para>要更新的范围域的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Domain Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _domain_name { get; set; }


        /// <summary>
        /// <para>Minimum Value</para>
        /// <para>The minimum value of the range domain.</para>
        /// <para>范围域的最小值。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Minimum Value")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _min_value { get; set; }


        /// <summary>
        /// <para>Maximum Value</para>
        /// <para>The maximum value of the range domain.</para>
        /// <para>范围域的最大值。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Maximum Value")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _max_value { get; set; }


        /// <summary>
        /// <para>Updated Workspace</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_workspace { get; set; }


        public SetValueForRangeDomain SetEnv(int? autoCommit = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, workspace: workspace);
            return this;
        }

    }

}